{
  buildDunePackage,
  ipaddr,
  ipaddr-cstruct,
  ounit2,
  ppx_sexp_conv,
}:

buildDunePackage {
  pname = "ipaddr-sexp";

  inherit (ipaddr) version src;

  duneVersion = "3";

  propagatedBuildInputs = [ ipaddr ];

  checkInputs = [
    ipaddr-cstruct
    ounit2
    ppx_sexp_conv
  ];
  doCheck = true;

  meta = ipaddr.meta // {
    description = "Library for manipulation of IP address representations usnig sexp";
  };
}
